package com.arrays;

import com.insideClass.MapOfList;
import com.insideClass.typeinfo.Individual;
import com.insideClass.typeinfo.Pet;

import java.util.List;
import java.util.Set;
import java.util.TreeSet;

/**
 * @author 13699
 */
public class IndividualTest {
    public static void main(String[] args) {
        Set<Individual> pets=new TreeSet<>();
        for (List<? extends Pet> lp:
                MapOfList.petpeople.values()) {
            for (Pet p:
                 lp) {
                pets.add(p);
            }
        }
        System.out.println(pets);
    }
}
